package com.liuyi.util.constants;

/**
 * @author: cd
 * @date: 2018/03/10 10:16
 */
public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_400("400", "请求处理异常，请稍后再试"),
    
    E_500("500", "请求方式有误,请检查 GET/POST"),
    
    E_501("501", "请求路径不存在"),
    
    E_502("502", "权限不足"),
    
    E_10008("10008", "角色删除失败,尚有用户属于此角色"),
    
    E_10009("10009", "账户已存在"),
    
    E_10010("10010", "该手机号已存在"),

    E_20011("20011", "登陆已过期,请重新登陆"),

    E_90003("90003", "缺少必填参数"),
    
    E_90004("90004", "用户组未创建，请先创建用户组"),
    
    E_90005("90005", "请求参数有误"),
    
    E_90006("90006", "退款失败"),
    
    E_90007("90007", "您的机构未录入，请联系客服答疑"),
    
    E_90008("90008", "您的公司账户余额不足，请先充值或汇入"),
    
    E_90009("90009", "退款失败,改退款记录不存在"),
    
    E_90010("90010", "新增失败,该能力名称或该能力下课程已存在");

    private String errorCode;

    private String errorMsg;

    ErrorEnum() {
    }

    ErrorEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
